package com.cgmnx.admin.service.rbac;

import com.cgmnx.admin.common.bean.Limiter;
import com.cgmnx.admin.dao.condition.LogCondition;
import com.cgmnx.admin.dao.entity.rbac.OperationLogEntity;

import java.util.List;


public interface OperationLogService {

    /**
     * 保存日志信息
     *
     * @param entity
     * @return
     */
    int save(OperationLogEntity entity);

    /**
     * @param entityList
     * @return
     */
    int saveAll(List<OperationLogEntity> entityList);

    /**
     * 查询日志信息
     *
     * @param condition
     * @return
     */
    List<OperationLogEntity> query(OperationLogEntity condition);


    OperationLogEntity queryById(Integer id);

    /**
     * 分页查询日志信息
     *
     * @param limiter
     * @return
     */
    List<OperationLogEntity> queryPage(final LogCondition condition, Limiter limiter);

    /**
     * 统计符合条数的日志
     *
     * @return
     */
    int count(final LogCondition condition);


}
